#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int gcd(int a, int b)
{
    int c = 0;
    while ((c = a % b))
    {
        a = b;
        b = c;
    }
    return b;
}

int main()
{
    long long a, b, c = 0;
    scanf("%lld%lld%lld", &a, &b, &c);
    long long min = a;
    long long max = a;
    if (b < min)
        min = b;
    if (c < min)
        min = c;
    if (b > max)
        max = b;
    if (c > max)
        max = c;
    int n = gcd(max, min);
    printf("%lld/%lld", min / n, max / n);
    return 0;
}